using UnityEngine;

public class CanvasControl
{   
    public Transform Tf { get; private set; }
    public SerializeRoot Root { get; private set; }
	public SerializeRoot Item_slr { get; private set; }
	public RectTransform Canvas_rtf { get; private set; }
	public RectTransform RawImage_rtf { get; private set; }
	public RectTransform InputField_rtf { get; private set; }
	public RectTransform Dropdown_rtf { get; private set; }
	public RectTransform ScrollView_rtf { get; private set; }

    public CanvasControl(GameObject go)
    {
		Tf = go.transform; Root = Tf.GetComponent<SerializeRoot>();
		Item_slr = Root.GetObject<SerializeRoot>("Item_slr");
		Canvas_rtf = Root.GetObject<RectTransform>("Canvas_rtf");
		RawImage_rtf = Root.GetObject<RectTransform>("RawImage_rtf");
		InputField_rtf = Root.GetObject<RectTransform>("InputField_rtf");
		Dropdown_rtf = Root.GetObject<RectTransform>("Dropdown_rtf");
		ScrollView_rtf = Root.GetObject<RectTransform>("ScrollView_rtf");
    }
}